package cn.itsource.org.domain;

import cn.itsource.basic.domain.BaseDomain;
import lombok.*;

//
/*@Getter
@Setter
@ToString
@EqualsAndHashCode
*/
@Data //具备上面的功能
@NoArgsConstructor//生成无参构造方法
@AllArgsConstructor//生成全参 构造方法
public class Department extends BaseDomain {
    /*部门编号*/
    private String sn;
    /*部门名字*/
    private String name;
    /*部门的状态  1：正常    0：禁用*/
    private Integer state;
    /*部门的负责人*/
    private Long manager_id;
    private Employee manager;
    /*上级部门*/
    private Long parent_id;
    private Department parent;

/*    public Department(Long id, String sn, String name, Integer state, Long manager_id, Long parent_id) {
        this.id = id;
        this.sn = sn;
        this.name = name;
        this.state = state;
        this.manager_id = manager_id;
        this.parent_id = parent_id;
    }  等价于 @AllArgsConstructor
    */

/*
    public Department() {
    }
    等价于 @NoArgsConstructor
    */
}
